import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/gateway/api'

// 主题活动
export const getThemeActivityList = params => postAction(gateway + '/admin/theme/activity/getThemeActivityList', params) // 获取主题活动列表
export const addThemeActivity = params => postAction(gateway + '/admin/theme/activity/addThemeActivity', params) // 新增主题活动
export const editThemeActivityById = params => postAction(gateway + '/admin/theme/activity/editThemeActivityById', params) // 修改主题活动
export const getThemeActivityById = params => postAction(gateway + '/admin/theme/activity/getThemeActivityById', params) // 获取主题活动详情
export const createThemeActivityQrCode = params => postAction(gateway + '/admin/theme/activity/createThemeActivityQrCode', params) // 生成二维码
export const upOrDownThemeActivityById = params => postAction(gateway + '/admin/theme/activity/upOrDownThemeActivityById', params) // 主题活动上线和下线
export const validCanDelBrand = params => postAction(gateway + '/admin/theme/activity/validCanDelBrand', params) // 校验是否可以删除品牌

// 主题搭配
export const addThemeMatch = params => postAction(gateway + '/admin/theme/match/addThemeMatch', params) // 新增主题搭配
export const editThemeMatchById = params => postAction(gateway + '/admin/theme/match/editThemeMatchById', params) // 修改主题搭配
export const getThemeMatchById = params => postAction(gateway + '/admin/theme/match/getThemeMatchById', params) // 主题搭配详情
export const getThemeMatchList = params => postAction(gateway + '/admin/theme/match/getThemeMatchList', params) // 获取主题搭配列表
export const onOrDownThemeMatchById = params => postAction(gateway + '/admin/theme/match/onOrDownThemeMatchById', params) // 上下线主题搭配
export const createThemeMatchQrCode = params => postAction(gateway + '/admin/theme/match/createThemeMatchQrCode', params) // 生成二维码
export const delThemeMatchById = params => postAction(gateway + '/admin/theme/match/delThemeMatchById', params) // 删除搭配

// 微信素材后台接口
export const createMaterial = params => postAction(gateway + '/admin/wx/material/createMaterial', params) // 创建/修改素材
export const getMaterialList = params => postAction(gateway + '/admin/wx/material/getMaterialList', params) // 获取素材列表
